Skip to content

Conversation

@montekki
Copy link
Member

@montekki montekki commented Sep 8, 2019

Implements a flat_map combinator. Currently the same about ret! as in #162 .

Also the naming should probably be FilterMapStream, but in that case Take stream should also change it's name i guess.

Stdlib: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.flat_map
Ref: #129

@yoshuawuyts
Copy link
Contributor

yoshuawuyts commented Sep 10, 2019

Also the naming should probably be FilterMapStream.

We've made a deliberate choice to name the stream types the same as in stdlib (unlike the futures, which we hope to replace with async fn eventually and remove). So FilterMap and Take are as intended!

Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yoshuawuyts
Copy link
Contributor

bors r+

bors bot added a commit that referenced this pull request Sep 10, 2019
163: adds stream::filter_map combinator r=yoshuawuyts a=montekki

Implements a `flat_map` combinator. Currently the same about `ret!` as in #162 .

Also the naming should probably be `FilterMapStream`, but in that case `Take` stream should also change it's name i guess.

Stdlib: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.flat_map
Ref: #129 

Co-authored-by: Fedor Sakharov <[email protected]>
@bors
Copy link
Contributor

bors bot commented Sep 10, 2019

Build succeeded

  • continuous-integration/travis-ci/push

@bors bors bot merged commit 9b381e4 into async-rs:master Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants